<?php
	include_once("feed.class.php");
	$feed = new feed();
	switch($action){
		case 'more':
		
		break;
		
		/*AJAX获取动态*/
		case 'load':
			$page = $page ? $page : 1;
			$data = $feed->listinfo($where,$page,$pagesize=10);
			
			/*分页*/
			/*$num = count($data);
			$pagesize = 20;
			$pages = ceil($num / $pagesize);
			$multipage = '';*/
			
			include template('load.html',$module);
		break;
		
		default:
			$data = $feed->listinfo();
			include template('index.html',$module);
		break;
	}
?>